import request from "./request";

export const getServiceOrderListAPI = (data) => {
  console.log("请求数据",data);
  return request.post({ url: "/serviceOrder/page", data });
};

export const getServiceOrderDetailAPI = (id) => {
  return request.get({ url: `/serviceOrder/${id}` });
};

export const deleteServiceOrderAPI = (id) => {
  return request.delete({ url: `/serviceOrder/${id}` });
};

export const updateServiceOrderAPI = (data) => {
  return request.put({ url: "/serviceOrder", data });
};

export const getDoctorServiceListAPI = (serviceId) => {
  return request.get({ url: `/doctorService/serviceOrder/${serviceId}` });
};